/* ----------------------------------------------------------------------------
 
    java api for ecco generated applications 
 
    (C)  by PDTec GmbH 2000
   
    This bundle of java classes allows java applications to interact with
	ecco generated applications.

  ----------------------------------------------------------------------------*/

package pdtec.ecco.meta;

import java.lang.Exception;


//---------------------------------------------------------------------------
//  class EccoException 
//---------------------------------------------------------------------------

public class EccoException  extends Exception {
  
  protected int errorNo;

  // constructor - delegates a message 
  public EccoException(String msg) {
   super(msg);
   errorNo = -1;
  } //constructor

 // constructor - delegates a message and a code
 public EccoException( int errorNo, String msg) {
   super(msg);
   this.errorNo = errorNo;
   } // constructor

 // getErrorNo: access to error number
 public int getErrorNo() {
     return(errorNo);
     } // getErrorNo
 
} /* class EccoException */





